package com.activity.control;

import org.activiti.engine.ProcessEngine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.activity.common.util.Util;

@Controller
@RequestMapping("/process")
public class ActivitiController {

	@Autowired
	ProcessEngine engine;
	
	/**
	 * 
	 * @param model
	 * @return
	 */
	@RequestMapping(method=RequestMethod.GET)
	public String list(Model model) {
		model.addAttribute("list",Util.list());
		return "template";
	}
	
	
}
